import org.junit.Assert;
import org.junit.Test;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;

public class NGuessNumberTest {
    @Test
    public void generateAnswerTest(){
        List<Integer> list = NGuessNumber.generateAnswer();
        Assert.assertEquals("数量错误",list.size(),4);
        Assert.assertEquals("有重复值",list.size(),4);
        Assert.assertTrue("最大值错误",Collections.max(list) <= 9);
    }

    @Test
    public void getPlayerInputTest(){
        List<Integer> list = NGuessNumber.getPlayerInput();
        Assert.assertEquals("数量错误",list.size(),4);
    }

    @Test
    public void compareGuessAnswerTest(){

    }


}
